home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act2 / 00260.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  759 b   |  32 lines

  1. on exitFrame
  2.   global toplimit, bottomlimit, rightlimit, leftlimit, moveloop
  3.   if the mouseDown = 1 then
  4.     if not (the soundBusy of 1) then
  5.       puppetSound(mysound)
  6.     end if
  7.     set myh to the mouseH
  8.     set myv to the mouseV
  9.     if myh < leftlimit then
  10.       set the locH of sprite 33 to leftlimit
  11.     else
  12.       if myh > rightlimit then
  13.         set the locH of sprite 33 to rightlimit
  14.       else
  15.         set the locH of sprite 33 to myh
  16.       end if
  17.     end if
  18.     if myv < toplimit then
  19.       set the locV of sprite 33 to toplimit
  20.     else
  21.       if myv > bottomlimit then
  22.         set the locV of sprite 33 to bottomlimit
  23.       else
  24.         set the locV of sprite 33 to myv
  25.       end if
  26.     end if
  27.     go("MOVELOOP")
  28.   else
  29.     moveme2()
  30.   end if
  31. end
  32.